<template>
  <div id="app" ref="element" class="aui-flex-col">
    <el-container class="aui-flex-row" style="height: 100%;">
      <navbar></navbar>
      <el-main class="aui-flex-row">
        <router-view/>
      </el-main>
    </el-container>
    <sidebar></sidebar>
  </div>
</template>
<script>
import Navbar from './components/Navbar'
import Sidebar from './components/Sidebar'
export default {
  name: 'App',
  components: {
    'navbar': Navbar,
    'sidebar': Sidebar
  }
}
</script>

<style scoped>
html {
  min-width: 650px;
}
body {
  margin: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  min-width: 650px;
}
#app {
  font-family: PingFangSC-Regular, -apple-system, BlinkMacSystemFont, Roboto, Helvetica Neue, Helvetica, Arial, Hiragino Sans GB, Source Han Sans, Noto Sans CJK Sc, Microsoft YaHei, Microsoft Jhenghei, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  height: 100vh;
  background: url("assets/image/bg.png") 0 0 repeat;
}
.el-main {
  display: inline-block;
  width: 100%;
  padding: 0;
  overflow: hidden;
}
.main {
  padding-right: 220px;
}
.el-menu--horizontal>>>.el-menu .el-menu-item {
  padding: 0 21px;
}
div.el-menu--horizontal {
  top: 40px!important;
}
div.el-menu--horizontal .el-menu.el-menu--popup {
  min-width: 88px!important;
  border-radius: 0;
  -webkit-box-shadow: 0 5px 12px 0 rgba(0,0,0,.1);
  box-shadow: 0 5px 12px 0 rgba(0,0,0,.1);
}
div.el-menu--horizontal .el-menu.el-menu--popup .el-menu-item {
  padding-left: 20px;
  line-height: 30px;
  height: 30px;
}
</style>